package com.eqxiu.iom.msg.manager;

import com.eqxiu.user.api.UserMemberApi;
import lombok.Data;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @description dubbo api 集中集中管理
 * @author wangl
 * @date 2020-05-27
 */
@Data
@Service
public class DubboManager {
    @Reference(version = "${dubbo.version.user}")
    private UserMemberApi userMemberApi;

    @Autowired
    @Qualifier(value = "userRabbitTemplate")
    private RabbitTemplate userRabbitTemplate;

    @Autowired
    @Qualifier(value = "maxcenterRabbitTemplate")
    private RabbitTemplate maxcenterRabbitTemplate;

}
